home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19951130-19960209 / 000099_news@columbia.edu_Thu Dec 14 16:13:41 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  9KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA17610
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun>); Thu, 14 Dec 1995 11:13:49 -0500
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.6.12/8.6.12) id LAA20097 for kermit.misc@watsun; Thu, 14 Dec 1995 11:13:47 -0500
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: problems with packets bigger than 94 bytes
  8. Date: 14 Dec 1995 16:13:41 GMT
  9. Organization: Columbia University
  10. Lines: 185
  11. Message-Id: <4apifl$jju@apakabar.cc.columbia.edu>
  12. References: <4ahd39$6vj@sparcserver.lrz-muenchen.de>
  13. Nntp-Posting-Host: watsun.cc.columbia.edu
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <4ahd39$6vj@sparcserver.lrz-muenchen.de>,
  17. Matthias Noethe <p7003cv@sun1.lrz-muenchen.de> wrote:
  18. >Hi everyone,
  19. >
  20. >I'm trying to send large text files, sometimes binaries from a linux
  21. >machine to a vms host. I try to use sliding windows but when I transmit 
  22. >larger packets than 94 bytes I only get naks from the vms-host.
  23. >So far I use 31 windows.
  24. >Buffers are big enough 100000 !
  25. >
  26. >Any suggestions ...
  27. >
  28. You should read the "Using C-Kermit" chapter that explains the relationship
  29. of packet length and window size to performance.  By the way, "Using
  30. C-Kermit" is available in German too:
  31.  
  32.     Frank da Cruz and Christine M. Gianone, "C-Kermit - Einfuehrung und
  33.     Referenz", Verlag Heinz Heise, Hannover, Germany (1994).
  34.     ISBN 3-88229-023-4.  Deutsch von Gisbert W. Selke.  Price: DM 88,00.  
  35.     Verlag Heinz Heise GmbH & Co. KG, Helstorfer Strasse 7, D-30625 Hannover.
  36.     Tel. +49 (05 11) 53 52-0, Fax. +49 (05 11) 53 52-1 29.
  37.  
  38. Also, pay particular attention to flow control.  It is all explained in the
  39. manual.
  40.  
  41. I would also ask you to read the CKVINS.DOC file that comes with VMS C-Kermit.
  42. As you will see, C-Kermit's buffers are not the only ones you need to be
  43. concerned with.  VMS itself has some buffering limitations that can only be
  44. changed by the system manager, either through privileged commands or by
  45. reconfiguring the system.
  46.  
  47. In the meantime, I would suggest that you reduce the window size to something
  48. reasonable, like 2 or 4, and then you should be able to increase the packet
  49. length.
  50.  
  51. Here, for reference is an earlier discussion of Kermit file transfer
  52. performance on VMS:
  53.  
  54. In article <3en6v1$eer@nyx10.cs.du.edu>,
  55. Michael Donohue <mdonohue@nyx10.cs.du.edu> wrote:
  56. >AN earlier post said that Kermit was not entirely bad for transfering 
  57. >files.  I tried and tried, but the max cps I could get was 157 or so on a 
  58. >9600 bps line.
  59. >
  60. >Could someone please tell me ... the settings for kermit?
  61. >
  62. I have posted the following message to this group several times -- if
  63. there is an FAQ, I hope this can be added to it.  But first, a word from
  64. our sponsor.  The current version of Kermit for VMS is C-Kermit 5A(190).
  65. It supersedes all previous VMS Kermit releases and programs, including all
  66. versions of Kermit-32, which is no longer supported.  You can get C-Kermit
  67. 5A(190) by mail order from Columbia University, or by anonymous ftp to
  68. kermit.columbia.edu, directory kermit/f, file ckvaaaa.hlp, read it, go
  69. from there.  You can also access the Kermit repository via the Web at URL:
  70.  
  71.   http://www.columbia.edu/kermit/
  72.  
  73. The Kermit software effort is funded primarily by mail order and book
  74. sales.  Users of C-Kermit (and MS-DOS Kermit) are encouraged to purchase
  75. the appropriate manual -- it will show you how to use the software and how
  76. to get the most out of it (e.g. answering questions like the one above, so
  77. they need not be posted to dozens of newsgroups over and over and over
  78. again).
  79.  
  80. If you type "help" at the C-Kermit> or MS-Kermit> prompt, you should get
  81. (among other things) a complete reference to the appropriate manual.  If
  82. you want more information, access the Web site listed above or send e-mail
  83. to kermit.columbia.edu.
  84.  
  85. The following message is almost a year old and discusses the previous
  86. release of C-Kermit, but aside from that, it still applies.
  87.  
  88. In article <s5$Oj86y-nB0055yn@faraday.clas.virginia.edu>
  89. gap5u@faraday.clas.virginia.edu (Gregory Perron) writes:
  90. > I'm downloading from a vax 4000-90 thru a terminal server of some sort
  91. > to my PC.  14.4's at both ends: I have a cardinal internal; they have
  92. > us robotics.  I get messages of 14.4, lapm, v.42bis, etc.  But,
  93. > downloads have been hideous.
  94. > I've given up on sz, because of too many aborted transfers.  I
  95. > *think* the problem is w/ the vax, but I'm not sure.  [I get flawless
  96. > 1600-1650 cps dl's on zipped files from a local bbs] Yes, I tried all
  97. > the -ebrw permutations I could think of.
  98. > On to kermit: I use procomm plus/dos 2.01 on my PC.  On the vax,
  99. > ckermit pops up and says:
  100. > Ckermit 5a(188) 23 NOV 92, OpenVMS Vax.
  101. >
  102. You'll get better results with C-Kermit 5A(189) or later, which has two
  103. new features described below.  C-Kermit 5A(189) is available via
  104. anonymous ftp to kermit.columbia.edu, directory kermit/b, get the file
  105. ckvaaa.hlp, read it, take it from there.
  106.  
  107. > My ckermit.ini file has:
  108. > set send pack 1000
  109. >
  110. This command is not needed; see the documentation.
  111.  
  112. > set receive pack 1000
  113. > set buff 20000 20000
  114. > set file type bin
  115. > set windows 10
  116. > set block 3
  117. > Symptoms: max dl cps has been around 1100 for a zipped/jpg/gif file.
  118. > And that's unusual: 950-1050 is more normal. It's almost like I'm
  119. > only at 9600, modem report aside.
  120. I can't speak for Procomm, but I ran some tests using MS-DOS Kermit 3.13
  121. (the current version) on a 486/66 over a V.32bis/V.42/V.42bis dialup
  122. connection to a Cisco terminal server, and from there to a VAXstation
  123. 3100 running VMS 5.x and C-Kermit 5A. The calling modem is a Telebit
  124. T3000, the answering modem is a USR Courier.
  125.  
  126. MS-DOS Kermit 3.13 is available via anonymous ftp to kermit.columbia.edu,
  127. directory kermit/bin, binary mode, file msvibm.zip.
  128.  
  129. In these tests, I downloaded a 330K ZIP file (MSVIBM.ZIP -- the MS-DOS
  130. Kermit 3.13 distribution).  My serial interface speed was 57600 bps, and
  131. I used RTS/CTS flow control between my PC and the modem, and RTS/CTS was
  132. also active between the answering modem and the terminal server.
  133.  
  134. In the first test (10 window slots x 1000-byte packets, same settings as
  135. yours), I achieved an effective throughput of 1091 cps, like you got.
  136.  
  137. Since the connection between the terminal server and VMS is via TCP/IP
  138. TELNET, and we know that TCP and IP will handle the flow control between
  139. the VAX and the terminal server, I told C-Kermit to SET FLOW NONE (its
  140. default setting is XON/XOFF) and ran the test again: 1136 cps.
  141.  
  142. Now that we've got the basics taken care of, we can work on tuning.
  143. Next I tell C-Kermit to:
  144.  
  145.   SET CONTROL UNPREFIX ALL
  146.   SET CONTROL PREFIX 1 129 255
  147.  
  148. (version 5A(189) or later is required for this; see the CKCKER.UPD file
  149. for explanation) -- This removes control-character prefixing overhead
  150. for all but 3 characters (4 really: NUL, Ctrl-A, Ctrl-A plus parity, and
  151. the TELNET IAC character).  Now I get 1549 cps.  Note: control-character
  152. unprefixing is of benefit primarily for precompressed files, secondarily
  153. for uncompressed binaries, and has very little effect at all on text
  154. files.
  155.  
  156. Well, the PC I was using is one of the new "high-speed, low-cost"
  157. models, and so lacks a buffered UART.  All of the above transfers
  158. suffered various amounts of retransmissions due to UART buffer overruns.
  159. Switching to a much slower PC (a PS/2-70, 15MHz I think) that has a
  160. 16550A buffered UART, same transfer, same parameters, the throughput
  161. goes up to 1601 cps.
  162.  
  163. Now, since I don't have to worry about buffer overruns any more, I
  164. increase Kermit's packet length to 5000 (SET RECEIVE PACKET-LENGTH
  165. 5000).  Throughput: 1608 cps.
  166.  
  167. And now, since this is a precompressed file, I note that neither
  168. Kermit's run-length compression, nor the modem's V.42bis compression
  169. will do any good -- and some would say that they slow things down
  170. a lot.  Let's see.  I turn both off:
  171.  
  172.   Kermit: SET REPEAT COUNTS OFF (C-Kermit 5A(189) or later required).
  173.   Modem:  ATS190=0 (Telebit T3000)
  174.  
  175. and download the file again.  Result: 1616 cps.  Not a big difference.
  176.  
  177. Lessons (which apply mainly to this particular type of connection):
  178.  
  179.  1. Buffered UARTs are better than nonbuffered UARTs.
  180.  2. Be sure to get the flow control at both ends.
  181.  3. Use long packets (1K - 5K, whatever works) and sliding windows
  182.     (4 or more).
  183.  4. Once you've got all that working optimally, you can squeeze out
  184.     another 20-30% efficiency with control-character unprefixing.
  185.  5. After that, don't bother too much with fine tuning, particularly
  186.     with disabling modem or software compression - it makes very little
  187.     difference.
  188.  
  189. Please, before we have another flurry of postings from people asking
  190. for the "optimal" list of control characters to be unprefixed, THERE IS
  191. NONE.  Every connection is different, with its own unique characteristics.
  192. Read the documentation.  Ditto for all the other variables we have looked
  193. at here: window size, packet length, flow control, etc.
  194.  
  195. - Frank